.class public Lcom/example/m6wmr/BalanceParticularActivity;
.super Landroid/app/Activity;
.source "BalanceParticularActivity.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;,
        Lcom/example/m6wmr/BalanceParticularActivity$MyHolder;,
        Lcom/example/m6wmr/BalanceParticularActivity$mOncliclistener;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private adapter:Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;

.field private balance_particular_layout:Landroid/widget/LinearLayout;

.field private beans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/BalanceParticularBean;",
            ">;"
        }
    .end annotation
.end field

.field private closebtn:Landroid/widget/LinearLayout;

.field private contentValues:Landroid/content/ContentValues;

.field private contentView:Landroid/view/View;

.field private context:Landroid/content/Context;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private getJsonString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private intpage:I

.field private isCkeck:Z

.field private isdownload:Z

.field private loadmore_balance:Landroid/widget/TextView;

.field private m:Lmyapp/MyApp;

.field private mhandler:Landroid/os/Handler;

.field private openHelper:Ldbclass/DBOpenHelper;

.field private pagesize:Ljava/lang/String;

.field private sl_balance_particular:Landroid/widget/ScrollView;

.field private tv_deal_money:Landroid/widget/TextView;

.field private tv_deal_time:Landroid/widget/TextView;

.field private tv_deal_type:Landroid/widget/TextView;

.field private urlString:Ljava/lang/String;

.field private xl_balance:Lcom/wmr/Lstview/XListView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 54
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 67
    iput-boolean v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isdownload:Z

    .line 68
    const-string v0, "10"

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->pagesize:Ljava/lang/String;

    .line 83
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->getJsonString:Ljava/lang/String;

    .line 90
    iput-boolean v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    .line 91
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->intpage:I

    .line 93
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->mhandler:Landroid/os/Handler;

    .line 54
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/BalanceParticularActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 95
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->beans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/BalanceParticularActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/BalanceParticularActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->pagesize:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/BalanceParticularActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 65
    iput-object p1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->urlString:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$12(Lcom/example/m6wmr/BalanceParticularActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 83
    iput-object p1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->getJsonString:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$13(Lcom/example/m6wmr/BalanceParticularActivity;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/BalanceParticularActivity;)V
    .locals 0

    .prologue
    .line 206
    invoke-direct {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->onLoad()V

    return-void
.end method

.method static synthetic access$3(Lcom/example/m6wmr/BalanceParticularActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->urlString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/BalanceParticularActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->getJsonString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/BalanceParticularActivity;Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;)V
    .locals 0

    .prologue
    .line 96
    iput-object p1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->adapter:Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/BalanceParticularActivity;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/BalanceParticularActivity;)Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->adapter:Lcom/example/m6wmr/BalanceParticularActivity$MyAdapter;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/BalanceParticularActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/BalanceParticularActivity;)I
    .locals 1

    .prologue
    .line 91
    iget v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->intpage:I

    return v0
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 271
    iput-object p0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->context:Landroid/content/Context;

    .line 273
    invoke-virtual {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->m:Lmyapp/MyApp;

    .line 274
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->activities:Ljava/util/ArrayList;

    .line 276
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->activities:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 278
    new-instance v0, Ldbclass/DBOpenHelper;

    iget-object v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->openHelper:Ldbclass/DBOpenHelper;

    .line 279
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->openHelper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 281
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->beans:Ljava/util/List;

    .line 284
    return-void
.end method

.method private initView()V
    .locals 2

    .prologue
    .line 291
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->closebtn:Landroid/widget/LinearLayout;

    .line 292
    const v0, 0x7f0c0171

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->sl_balance_particular:Landroid/widget/ScrollView;

    .line 293
    const v0, 0x7f0c0172

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->balance_particular_layout:Landroid/widget/LinearLayout;

    .line 294
    const v0, 0x7f0c0174

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->loadmore_balance:Landroid/widget/TextView;

    .line 296
    const v0, 0x7f0c0170

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/wmr/Lstview/XListView;

    iput-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    .line 297
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 298
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 300
    return-void
.end method

.method private onCliclistener()V
    .locals 3

    .prologue
    .line 307
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/BalanceParticularActivity$mOncliclistener;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/BalanceParticularActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/BalanceParticularActivity;Lcom/example/m6wmr/BalanceParticularActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 309
    return-void
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 207
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 208
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 209
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->xl_balance:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 210
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    .line 211
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 200
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 201
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 200
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 202
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 203
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public getShopSource()V
    .locals 1

    .prologue
    .line 348
    new-instance v0, Lcom/example/m6wmr/BalanceParticularActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/BalanceParticularActivity$4;-><init>(Lcom/example/m6wmr/BalanceParticularActivity;)V

    .line 383
    invoke-virtual {v0}, Lcom/example/m6wmr/BalanceParticularActivity$4;->start()V

    .line 385
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 101
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 102
    const v1, 0x7f030041

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/BalanceParticularActivity;->setContentView(I)V

    .line 105
    invoke-direct {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->initData()V

    .line 107
    invoke-direct {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->initView()V

    .line 109
    invoke-direct {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->onCliclistener()V

    .line 112
    invoke-virtual {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->getShopSource()V

    .line 115
    invoke-virtual {p0}, Lcom/example/m6wmr/BalanceParticularActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->m:Lmyapp/MyApp;

    .line 116
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/BalanceParticularActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 117
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 118
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 123
    :cond_0
    new-instance v1, Lcom/example/m6wmr/BalanceParticularActivity$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/BalanceParticularActivity$1;-><init>(Lcom/example/m6wmr/BalanceParticularActivity;)V

    iput-object v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->h:Landroid/os/Handler;

    .line 196
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 340
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 341
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 342
    return-void
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 245
    iget-boolean v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    if-nez v0, :cond_0

    .line 246
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    .line 247
    iget v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->intpage:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->intpage:I

    .line 249
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->mhandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/BalanceParticularActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/BalanceParticularActivity$3;-><init>(Lcom/example/m6wmr/BalanceParticularActivity;)V

    .line 256
    const-wide/16 v2, 0x1f4

    .line 249
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 261
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 217
    iget-boolean v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    if-nez v0, :cond_0

    .line 218
    iput-boolean v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->isCkeck:Z

    .line 219
    iput v1, p0, Lcom/example/m6wmr/BalanceParticularActivity;->intpage:I

    .line 222
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->beans:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 223
    iget-object v0, p0, Lcom/example/m6wmr/BalanceParticularActivity;->mhandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/BalanceParticularActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/BalanceParticularActivity$2;-><init>(Lcom/example/m6wmr/BalanceParticularActivity;)V

    .line 230
    const-wide/16 v2, 0x1f4

    .line 223
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 240
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 332
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 335
    return-void
.end method
